<?php
namespace Home\Controller;
class PageController extends HomeController {
	public function _initialize() {
        parent::_initialize();
        $this->_mod = D('ArticlePage');
    }
    public function index($title = about){
        $id = I('id',1,'intval');
        if($id){
            $map['id'] = $id;
        }else{
            $map['alias'] = $title;
        }
        $info = $this->_mod->where($map)->find();
        $list = $this->_mod->field('id,page_cate,title,alias')->where(array('page_cate'=>1))->select();
        $this->assign('info',$info);
        $this->assign('list',$list);
        $this->display('index');
    }
    public function _empty($title){
        $this->index($title);
    }

}